package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.JifenPointsExchangeOrderMapper;
import com.ruoyi.system.domain.JifenPointsExchangeOrder;
import com.ruoyi.system.service.IJifenPointsExchangeOrderService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-14
 */
@Service
public class JifenPointsExchangeOrderServiceImpl implements IJifenPointsExchangeOrderService 
{
    @Autowired
    private JifenPointsExchangeOrderMapper jifenPointsExchangeOrderMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param orderId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public JifenPointsExchangeOrder selectJifenPointsExchangeOrderByOrderId(Long orderId)
    {
        return jifenPointsExchangeOrderMapper.selectJifenPointsExchangeOrderByOrderId(orderId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param jifenPointsExchangeOrder 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<JifenPointsExchangeOrder> selectJifenPointsExchangeOrderList(JifenPointsExchangeOrder jifenPointsExchangeOrder)
    {
        return jifenPointsExchangeOrderMapper.selectJifenPointsExchangeOrderList(jifenPointsExchangeOrder);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param jifenPointsExchangeOrder 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertJifenPointsExchangeOrder(JifenPointsExchangeOrder jifenPointsExchangeOrder)
    {
        jifenPointsExchangeOrder.setCreateTime(DateUtils.getNowDate());
        return jifenPointsExchangeOrderMapper.insertJifenPointsExchangeOrder(jifenPointsExchangeOrder);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param jifenPointsExchangeOrder 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateJifenPointsExchangeOrder(JifenPointsExchangeOrder jifenPointsExchangeOrder)
    {
        return jifenPointsExchangeOrderMapper.updateJifenPointsExchangeOrder(jifenPointsExchangeOrder);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param orderIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteJifenPointsExchangeOrderByOrderIds(String orderIds)
    {
        return jifenPointsExchangeOrderMapper.deleteJifenPointsExchangeOrderByOrderIds(Convert.toStrArray(orderIds));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param orderId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteJifenPointsExchangeOrderByOrderId(Long orderId)
    {
        return jifenPointsExchangeOrderMapper.deleteJifenPointsExchangeOrderByOrderId(orderId);
    }
}
